﻿using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using LinQ_DTO;
namespace BUS
{
    class LoaiSanPhamGocBUS
    {
        public List<shop_loaisanphamgoc> LayLoaiTatCaSanPhamGoc()
        {
            LoaiSanPhamGocDAO dao = new LoaiSanPhamGocDAO();
            return dao.LayTatCaLoaiSanPhamGoc();
        }
        public void ThemLoaiSanPhamGoc(shop_loaisanphamgoc AddObject)
        {
            LoaiSanPhamGocDAO dao = new LoaiSanPhamGocDAO();
            dao.ThemLoaiSanPhamGoc(AddObject);
        }
        public void XoaLoaiSanPhamGoc(int Ma)
        {
            LoaiSanPhamGocDAO dao = new LoaiSanPhamGocDAO();
            dao.XoaLoaiSanPhamGoc(Ma);
        }
        public void CapNhatLoaiSanPhamGoc(int Ma, shop_loaisanphamgoc EditObject)
        {
            LoaiSanPhamGocDAO dao = new LoaiSanPhamGocDAO();
            dao.CapNhatLoaiSanPhamGoc(Ma,EditObject);
        }
    }
}

